<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<%@page import="jp.co.menox.tmcommon.model.LendingHistory" %>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>借入状況確認画面 | ご近所シェアリングサービス</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="(C) MENOX (http://www.menox.co.jp/)">
<!--Require Stylesheet-->
<link rel="stylesheet" href="/tmserver/css/common.css">
<!--Require Javascript-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<%@ include file="/tmserver/parts/headcommon.jsp" %>
</head>
<body onload="loadUserName()">
<div id="wrapper">
<!--**********▽メインここから**********-->
<div id="wrap-top">
<%@ include file="/tmserver/parts/header.jsp" %>
<div id="content">
<h2>借入状況確認画面</h2>
<div class="line"></div>
<!--**********▽カラム1ここから**********-->
<div id="column1">
<!--**********▼メインカラムここから**********-->
<div id="column1-inner">
<%@ include file="/tmserver/gate/contents.jsp" %>
<!--column1-inner--></div>
<!--**********▲メインカラムここまで**********-->
<!--column1--></div>
<!--**********△カラム1ここまで**********-->
<div id="column2">
<%-- ロケール情報を設定 --%>
<fmt:setLocale  value="ja-JP" scope="request"/>
  <div>
  <section id="searchResult">
    <p class="stitle">借入状況確認</p>
    
    <table>
      <thead>
        <tr>
          <th>No.</th>
          <th>状態</th>
          <th>カテゴリー</th>
          <th>品物名</th>
          <th>個数</th>
          <!--<th>貸与者コメント</th>--> 
          <th>貸出開始日</th>
          <th>返却予定日</th>
     <!--     <th>返却日</th> --> 
        </tr>
      </thead>
      <tbody>
        <c:forEach var="lendH" items="${lendingHList}" varStatus="hs">
        <tr>
          <td class="no">${f:h(hs.count)}</td>
          <td class="center">
             <c:if test="${lendH.statusType == 2}">
				借入中
             </c:if>
             <c:if test="${lendH.statusType != 2}">
                ${f:h(statusMap[lendH.statusType])}
             </c:if>
          </td>
          <td>${f:h(lendingCategoryMap[lendH.lendingId])}</td>
          <td>${f:h(lendingNameMap[lendH.lendingId])}</td>
          <td class="center">${f:h(lendH.count)}</td>
          <!--<td>${f:h(lendingCommentMap[lendH.lendingId])}</td>--> 
          <td class="center">
             <c:if test="${lendH.statusType == 2}">
               <c:if test="${lendH.lentDate!=null}">
               <fmt:formatDate value="${lendH.lentDate}" pattern="yyyy/MM/dd" />
               </c:if>
             </c:if>
             <c:if test="${lendH.statusType != 2}">
               <c:if test="${lendH.fromDate!=null}">
               <fmt:formatDate value="${lendH.fromDate}" pattern="yyyy/MM/dd" />
               </c:if>
             </c:if>
          </td>
          <td class="center">
             <c:if test="${lendH.statusType == 2}">
               <c:if test="${lendH.returnPlanDate!=null}">
               <fmt:formatDate value="${lendH.returnPlanDate}" pattern="yyyy/MM/dd" />
               </c:if>
             </c:if>
             <c:if test="${lendH.statusType != 2}">
               <c:if test="${lendH.toDate!=null}">
               <fmt:formatDate value="${lendH.toDate}" pattern="yyyy/MM/dd" />
               </c:if>
             </c:if>
          </td>
      <!--    <td>
             <c:if test="${lendH.returnedDate!=null}">
             <fmt:formatDate value="${f:h(lendH.returnedDate)}" pattern="yyyy/MM/dd" />
             </c:if>
          </td> --> 
        </tr>
        </c:forEach>
      </tbody>
    </table>
</form>
  </section>


<!--column2--></div>
<!--**********△カラム2ここまで**********-->
<!--content--></div>
<!--wrap-top--></div>
<!--**********△メインここまで**********-->
<%@ include file="/tmserver/parts/footer.jsp" %>
<!--wrapper--></div>
</body>
</html>
